package com.ossjk.qlh.minapp.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ossjk.qlh.minapp.entity.Orders;
import com.ossjk.qlh.minapp.vo.OrderSumVo;
import com.ossjk.qlh.minapp.vo.OrdersMenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 订单Mapper接口
 * @author liuxi
 * @since 2020-08-14
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    //查询订单汇总
    List<OrderSumVo> orderAllList(@Param(Constants.WRAPPER)QueryWrapper<OrderSumVo> queryWrapper);

    //我的订单
    List<OrdersMenuVo> queryOrderls(@Param(Constants.WRAPPER)QueryWrapper<OrdersMenuVo> queryWrapper);
}
